#version 450

layout(binding = 0) uniform Uniforms
{
    double d1;
};

layout(location = 0) out vec4 fragColor;

void main()
{
    uvec2 u2 = unpackDouble2x32(d1);

    fragColor = (u2.x != 5) ? vec4(0.0) : vec4(1.0);
}
// BEGIN_SHADERTEST
/*
; RUN: amdllpc -spvgen-dir=%spvgendir% -v %gfxip %s | FileCheck -check-prefix=SHADERTEST %s
; SHADERTEST-LABEL: {{^// LLPC}} SPIRV-to-LLVM translation results
; SHADERTEST: = bitcast double %{{.*}} to <2 x i32>
; SHADERTEST: AMDLLPC SUCCESS
*/
// END_SHADERTEST
